package com.wenhao.newcode.pinduoduo.hard2020;

import java.util.Scanner;

/**
 * @author Wenhao Tong
 * @create 2021-07-25 16:12
 */
public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int T = scanner.nextInt();
        for (int i = 0;i < T;i++) {
            int N = scanner.nextInt();
            int count = 0;
            while (N != 0) {
                N >>= 1;
                count++;
            }
            System.out.println(count);
        }
    }
}
